-- GetTotalSalary
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GetTotalSalary]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[GetTotalSalary];

-- DeleteLast
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DeleteMax]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[DeleteMax]

-- GetMax
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GetMax]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[GetMax]